import unittest

import HTMLTestRunner_PY3,yagmail,logging

class tools():
    # 报告
    def report(self):
        report=HTMLTestRunner_PY3.HTMLTestRunner(open('a.html','wb'),
                                                 title='测试报告',
                                                 description='asaaaaaaa')
        return report
    #邮件
    def yg(self):
        yg=yagmail.SMTP(user='3388044155@qq.com',password='xubebrzpnnmcdcbd',port='465')
        yg.send(to='3388044155@qq.com',subject='测试主题',contents=['a.html','aaaaaaaa'])
        yg.close()
